package com.ydy.mapper;

import com.ydy.my.mapper.MyMapper;
import com.ydy.pojo.OrderStatus;
import com.ydy.pojo.Orders;
import com.ydy.pojo.vo.MyOrdersVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface OrdersMapper extends MyMapper<Orders> {
    /**根据用户id和订单状态查询我的订单列表*/
    List<MyOrdersVO> queryMyOrders(@Param("paramsMap") Map<String, Object> map);

    /**获得订单状态数概况*/
    int getMyOrderStatusCounts(@Param("paramsMap") Map<String, Object> map);

    /**查询订单动向*/
    List<OrderStatus> getMyOrderTrend(String userId);
}